# import all yaml files in current directory
# change str "/nvmework1/shaonian/Datasets" to "/home/shaonian/Datasets"

for file in *.yaml; do
    if [ -f "$file" ]; then
        sed -i 's|/nvmework1/shaonian/Datasets|/home/shaonian/Datasets|g' "$file"
        sed -i 's|/nvmework1/shaonian/Datasets/Y800M_extracted/|/home/lixian/dataset/800/audio/|g' "$file"
    fi
done

# 78.10 -> 75.106 reverse process
# for file in *.yaml; do
#     if [ -f "$file" ]; then
#         sed -i 's|/home/shaonian/Datasets|/nvmework1/shaonian/Datasets|g' "$file"
#     fi
# done